import {createRouter,createWebHistory} from "vue-router";

const routes = [
    {path: '/',redirect:'index'},
    {path:'/index',component:()=>import('../pages/index.vue')},
    {path: '/upload',component:()=>import('../pages/upload.vue')},
    {path: '/news',component:()=>import('../pages/news.vue')}
]

const router = createRouter({
    history:createWebHistory(),
    routes
})

export default router